﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZD
{
    public class ZD
    {
        private string m_BaseDir="Base";
        private string m_workFile = "";
        private bool m_WorkType = false;
        private Dictionary<string,ZDFDB> m_dataBases;


        /// <summary>
        /// Data Bases
        /// </summary>
        public Dictionary<string,ZDFDB> DataBases
        {
            get { return m_dataBases; }
            set { m_dataBases = value; }

        }       

        /// <summary>
        /// Каталог Файлов базы
        /// </summary>
        public string BaseDir
        {
            get { return m_BaseDir; }
            set { m_BaseDir = value; }
        }

        /// <summary>
        /// Конструктор 
        /// </summary>
        /// <param name="oneFile"> признак работы с одним файлом</param>
        public ZD(bool oneFile=false,string fileName="")
        {
            if (oneFile)
            {
                m_workFile = fileName;
                m_WorkType = oneFile;
            }
            Init();
        }
        /// <summary>
        /// Конструктор
        /// </summary>
        /// <param name="BaseDir">Директория файлов базы</param>
        public ZD(string BaseDir)
        {
            m_BaseDir = BaseDir;
        }
        private void Init()
        {
            if (!m_WorkType)
            {
                
            }
            else
            {

            }
        }
    }
}
